public class Clientsclass {
public static void main(String[] args) {
    // Factory factor = new Factory();
    // Fruit fruit = factor.CreatFruit("B");
    Factory factory = new Afactory();
    Fruit fruit = factory.CreatFruit();
    fruit.eat();
}
}
